package com.pktechan.manage.dao;

import com.pktechan.manage.base.BaseMapper;
import com.pktechan.manage.entity.ProductChannelFee;
import com.pktechan.manage.vo.ProductVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("productChannelFeeMapper")
public interface ProductChannelFeeMapper extends BaseMapper {

    List<ProductVO> getProductChannelFeeList(ProductVO productVO);

    /**
     * 根据productId和commissionGeneration查询有效产品营销渠道费
     * @param productChannelFee
     * @return
     */
    ProductChannelFee getProductChannelFeeByProductId(ProductChannelFee productChannelFee);

    /**
     * 根据id查询产品营销渠道费
     * @param channelFeeId
     * @return
     */
    ProductVO getProductChannelFeeById(Integer channelFeeId);
}
